package com.heima.serviceproduct.service.impl;

import com.heima.Result;
import com.heima.product.Product;
import com.heima.serviceproduct.service.ProductService;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
public class ProductServiceImpl implements ProductService {

    @Override
    public Product getProductById(Long id) {
        Product product = new Product();

        product.setId(id);
        product.setPrice(new BigDecimal("100"));
        product.setProductName("产品"+id);
        product.setNum(10);

        return product;
    }


}
